#include "MBangle.hh"

using namespace std;

MBangle::MBangle(){
};
MBangle::MBangle(const char* filename){
	SetFile( filename);
	ReadMBangle();
};

MBangle::~MBangle(){
	cout << "destructor" << endl;
};
void MBangle::ReadMBangle(){
	TEnv *Angles = new TEnv(fInputFile.data());
	for (int i=0; i<8; i++){
		for (int j=0; j<3; j++){
			for (int k=0; k<6; k++){
				MBTheta[i][j][k] = Angles->GetValue(Form("Theta.%d.%d.%d",i,j,k),0.0);
			}
		}
	}
};
